Migrating email with ImapSync
This tutorial will explain how you can migrate your existing email accounts to our Hosted Email service.
If you want something easy/simple to do , you can use this online tool, and migrate accounts one by one:
OR
If you are a do-it-yourself kind of person, an easy way to automate migration from your old email service provider to our Hosted Email Service is to use ImapSync.
This can be downloaded here:
Start with downloading ImapSync. You can either purchase it from the website above, or grab earlier versions from Ubuntu/Debian repositories.
This can also be downloaded from Github, here:
https://github.com/imapsync/imapsync
Once compiled/installed, generate a list of your users in this format:
[source-username],[source-password],[destination-username],[source-password]
Where [source-username] is the source IMAP username (email address), and [destination-username] is the username (email address) for your destination (IMAP server. There should a single source => destination entry per line. Separate new entries with newlines:
[email protected],password,[email protected],password [email protected],password,[email protected],password [email protected],password,[email protected],password
Save the file as migration.csv. Then run this command:
{ while IFS=',' read u1 p1 u2 p2; do ./imapsync --host1 [source-hostname] --authmech1 PLAIN --user1 "$u1" --password1 "$p1" --prefix1 INBOX/ --sep1 / \ --host2 [destination-hostname] --authmech2 PLAIN --user2 "$u2" --password2 "$p2" --prefix2 INBOX. --sep2 . ... done ; } < migrations.csv
Replace [source-hostname] with the hostname/IP of the source server. Replace [destination-hostname] with the hostname/IP of the destination server.
Executing this command will import all emails from the source to the destination accounts.
Please note, this document assumes that the namespace separator of host1 is "/" and host2 is "." . This might be different on your current mail server.
--prefix1 INBOX/ --sep1 /
--prefix2 INBOX. --sep2 .
These are optional, but may be necessary as the mail server strictly uses "." .
Note: When migrating, the order of messages in the inbox will be arranged/displayed by the date the message was last modified (Not necessarily the date the email was received).
Similar Articles
Required documents for certain countries
READ MORESTUN Servers
READ MOREWhat is Toll Fraud
READ MORELinksys LRT224 recommended settings for VoIP
READ MORERecommended settings for SonicWall products for SIP protocol
READ MORE